// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.BarPresentDao;
import com.liuxinlong.modules.entity.BarPresent;
import com.liuxinlong.modules.mapper.BarPresentMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年7月28日
 */
@Service
public class BarPresentDaoImpl extends ServiceImpl<BarPresentMapper, BarPresent> implements BarPresentDao {

    @Override
    public List<BarPresent> pageBarPresentList(Map<String, Object> queryParam) {
        return baseMapper.pageBarPresentList(queryParam);
    }

    @Override
    public int getBarPresentCount(Map<String, Object> queryParam) {
        return baseMapper.getBarPresentCount(queryParam);
    }

    @Override
    public List<BarPresent> queryAvailablePresent() {
        return baseMapper.queryAvailablePresent();
    }

    @Override
    public void updatePresentStatus(String id,int targetStatus) {
        baseMapper.updatePresentStatus(id,targetStatus);
    }

    @Override
    public Map<String, Map<String, String>> queryPresentMap() {
        return baseMapper.queryPresentMap();
    }
}
